package com.example.shop_2304.bannerfg

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.MediaController
import com.example.base.mvvm.BaseViewFragment
import com.example.shop_2304.R
import com.example.shop_2304.databinding.FragmentVVBinding


class VVFragment : BaseViewFragment<FragmentVVBinding>() {
    override fun initView() {
        binding.vv.setVideoPath("http://txmov2.a.yximgs.com/upic/2020/08/24/13/BMjAyMDA4MjQxMzMwNTRfMTYxMTM0MDI0XzM0OTA4OTUzMjM2XzFfMw==_b_Bb0a3649c2329c236a48cf67d900e2b2e.mp4?tag=1-1599265874-vdg-1-nbdemrpxwp-6cfb8a4f1fb419c4&tt=b&bp=10000")
        binding.vv.setMediaController(MediaController(context))
        binding.vv.start()
    }

    override fun initData() {

    }

    override fun getLayout(): Int  = R.layout.fragment_v_v

}